﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows;


namespace WpfApplication1
{
    public class boolToStringColorConverter : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			try
			{
				
					if ((bool)value == true)
                        return "#3E3E3E";
					else
					{
                        return "#003E3E3E";
					}
				
			} catch
			{
				return DependencyProperty.UnsetValue;
			}
		}
		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			return DependencyProperty.UnsetValue;
		}
	}
}
